package com.action;

import com.dao.Dao;
import com.opensymphony.xwork2.ActionSupport;

public class ZhuceAction extends ActionSupport{
    private String name;
    private String password;
    
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub

        Dao zhucedao =new Dao();
		if(zhucedao.zhuce(name, password)){
			return "success";
		}
		return "false";
	}
	
	

}
